﻿using System.Web.Mvc;

namespace PortalWeb.Areas.QuartzAdmin
{
    public class QuartzAdminAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "QuartzAdmin";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "QuartzAdmin_default",
                "Admin/Quartz/{controller}/{action}/{id}",
                defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
                namespaces: new string[] { "PortalWeb.Areas.QuartzAdmin.Controllers" }
                );
        }
    }
}